#ifndef _OSGIS_LAYER_ENGINE_H_
#define _OSGIS_LAYER_ENGINE_H_

#include <lua>
#include <luabind/luabind.hpp>

#include <osg/Group>


#include "luaVm.h"

namespace Osgis
{
	class LayerEngine
	{
	public:
		LayerEngine();
	public:
		virtual ~LayerEngine();
	public:
		osg::Group* getBuildingLayer(luabind::object data, luabind::object meta);
		osg::Group* getTextLayer(luabind::object data, luabind::object meta);
		osg::Group* parse(const std::string& layerFile, std::string& name);
	protected:
		
		lua_State* _luaVm;
	};
}
#endif